aux_source_directory(./ HELLO_SOURCE_DIR)

find_package(Gflags REQUIRED)
include_directories(${GFLAGS_INCLUDE_DIRS})

find_package(Glog REQUIRED)
include_directories(${GLOG_INCLUDE_DIRS}) 

add_library(hello SHARED ${HELLO_SOURCE_DIR})

INSTALL(TARGETS hello LIBRARY DESTINATION /usr/local/lib)
INSTALL(FILES "hello.h" DESTINATION /usr/local/include)